package com.yuxl.admin.manager.auth.core.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

/**
 * @author yuxl
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table("auth_user_role")
@Schema(description = "用户角色关联实体")
public class AuthUserRole {
    @Id
    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "角色ID")
    private Long roleId;
}